package org.csu.mybigpro.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.mybigpro.DTO.ClassroomBookingDTO;
import org.csu.mybigpro.DTO.ClassroomDTO;
import org.csu.mybigpro.domain.ClassroomBooking;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.csu.mybigpro.persistence.ClassroomBookingMapper;

import java.time.LocalDate;
import java.util.List;

public interface ClassroomBookingService extends IService<ClassroomBooking> {

    List<ClassroomBookingDTO> getAllReviewedWithNames();
    List<ClassroomBookingDTO> getBookingsByTeacherName(String teacherName);
    List<ClassroomBookingDTO> getBookingsByRoomNumber(String roomNumber);
    /**
     * 获取所有教室及其当天的借用状态
     * @param date 查询日期
     * @return 教室列表及借用状态
     */
    List<ClassroomDTO> getAllClassroomsWithBookingStatus(LocalDate date);
}
